import React, { Component } from 'react'
import Navbar from './Navbar/Navbar'
export default class App extends Component {
  render() {
    var obj={
        title:"测试",
        leftShow:true
    }
    return (
      <div>
        <Navbar title={"首页"} leftShow={false}/>
        <Navbar title="列表" />
        <Navbar title="购物车" />
        {/* 简写：如果跟定义变量一致，可以使用扩展运算符 */}
        <Navbar {...obj} />
      </div>
    )
  }
}
